Miles Sound System SDK 7.2a

DDK Digital Function: ASC_val

Discussion

Input:

AX = Number base (2-16)
BX = Offset of string in scratch[] array

Output:

AX = Value of number, or -1 if invalid input
BX = Offset of first character after end of string
All registers changed

Purpose:

Returns value of positive integer represented as ASCII string terminated with 0 or space

Notes:

Used by Function 303H (Parse Environment Variable)

Skips leading whitespace


Group: DDK Support Routines for Digital Sound Drivers

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.